package com.example.volunteeroa.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;

@CrossOrigin
@Controller
public class MainController {
    @GetMapping("/")
    public String backHome1(){
        return "index";
    }

    @GetMapping("/group/{str}")
    public String backHome2(){
        return "index";
    }

    @GetMapping("/image/{str}")
    public String backHome3(){
        return "index";
    }
    @GetMapping("/image")
    public String backHome4(){
        return "index";
    }
    @GetMapping("/login")
    public String backHome5(){
        return "login";
    }
}
